A derivative-based parser generator for visibly Pushdown grammars
نویسندگان
چکیده
In this paper, we present a derivative-based, functional recognizer and parser generator for visibly pushdown grammars. The generated accepts ambiguous grammars produces parse forest containing all valid trees an input string in linear time. Each tree the can then be extracted also Besides generator, to allow more flexible forms of grammars, translator that converts tagged CFG grammar sound way, are further produced by running semantic actions embedded translated grammar. performance is compared with popular parsing tool ANTLR other hand-crafted parsers. correctness core algorithm formally verified proof assistant Coq.
منابع مشابه
Congruences for Visibly Pushdown Languages
We study congruences on words in order to characterize the class of visibly pushdown languages (VPL), a subclass of context-free languages. For any language L, we define a natural congruence on words that resembles the syntactic congruence for regular languages such that this congruence is of finite index if, and only if, L is a VPL. We then study the problem of finding canonical minimal determ...
متن کاملSymbolic Visibly Pushdown Automata
Nested words model data with both linear and hierarchical structure such as XML documents and program traces. A nested word is a sequence of positions together with a matching relation that connects open tags (calls) with the corresponding close tags (returns). Visibly Pushdown Automata are a restricted class of pushdown automata that process nested words, and have many appealing theoretical pr...
متن کاملVisibly Pushdown Modular Games
Games on recursive game graphs can be used to reason about the control flow of sequential programs with recursion. In games over recursive game graphs, the most natural notion of strategy is the modular strategy, i.e., a strategy that is local to a module and is oblivious to previous module invocations, and thus does not depend on the context of invocation. In this work, we study for the first ...
متن کاملVisibly Pushdown Games
The class of visibly pushdown languages has been recently defined as a subclass of context-free languages with desirable closure properties and tractable decision problems. We study visibly pushdown games, which are games played on visibly pushdown systems where the winning condition is given by a visibly pushdown language. We establish that, unlike pushdown games with pushdown winning conditio...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Proceedings of the ACM on programming languages
سال: 2021
ISSN: ['2475-1421']
DOI: https://doi.org/10.1145/3485528